home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
PSviewExample
/
InfoPanelView.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
654b
|
37 lines
#import "InfoPanelView.h"
@implementation InfoPanelView
/*
* The first two lines clear the view, The remaider display the
* message in the view.
*/
- drawSelf:(NXRect *) r: (int) count
{
PSsetgray (NX_BLACK);
PSrectfill (bounds.origin.x, bounds.origin.y,
bounds.size.width, bounds.size.height);
PSsetgray (NX_DKGRAY);
PSmoveto (15.0, 80.0);
PSselectfont ("Times-Italic", 45.0);
PSshow ("HEWLETT PACKARD");
PSsetgray (NX_WHITE);
PSmoveto (15.0, 20.0);
PSselectfont ("Times-Romain", 65.0);
PSshow ("HPdatHelper");
PSsetgray (NX_LTGRAY);
PSmoveto (15.0, 70.0);
PSlineto(425,70);
PSstroke();
return self;
}
@end